package com.oneonefive.trainticketsystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.oneonefive.trainticketsystem.pojo.Train;

import java.io.Serializable;
import java.util.List;


public interface TrainService extends IService<Train> {
    List<Train> selectAllTrain(Integer trainId,String startLocation, String endLocation, int startRow);
    int getRowCount(Integer trainId,String startLocation,String endLocation);

    @Override
    default boolean removeById(Serializable id) {
        return IService.super.removeById(id);
    }
    @Override
    boolean saveOrUpdate(Train train);
}
